A note concerning the closest point pair algorithm
نویسنده
چکیده
An algorithm, described by Sedgewick, finds the distance between the closest pair of n given points in a plane using a variant of mergesort. This takes O(n logn) time. To prove this it is necessary to show that, in the merge phase of the algorithm, no more than a constant number of distances need to be checked for each point considered. Cormen, Leiserson and Rivest show that checking seven distances is sufficient while Sedgewick suggests that this should be four. This paper shows that checking three distances is sufficient and that a slight modification of the algorithm reduces the number to two.
منابع مشابه
Aerodynamic Design Optimization Using Genetic Algorithm (RESEARCH NOTE)
An efficient formulation for the robust shape optimization of aerodynamic objects is introduced in this paper. The formulation has three essential features. First, an Euler solver based on a second-order Godunov scheme is used for the flow calculations. Second, a genetic algorithm with binary number encoding is implemented for the optimization procedure. The third ingredient of the procedure is...
متن کاملEuclidean proximity and power diagrams
Power diagrams [Aur87] are a useful generalization of Voronoi diagrams in which the sites defining the diagram are not points but balls. They derive their name from the fact that the distance used in their definition is not the standard Euclidean distance, but instead the classical notion of the power of a point with respect to a ball [Cox61]. The advantage of the power distance is that the ‘bi...
متن کامل2D Closest Pair Problem: A Closer Look
A closer look is taken at the well-known divide-andconquer algorithm for finding the closest pair of a set of points in the plane under the Euclidean distance. An argument is made that it is sufficient, and sometimes necessary, to check only the next three points following the current point associated with the y-sorted array in the combine phase of the algorithm.
متن کاملAn Optimal Algorithm for Closest-Pair Maintenance
Given a set S of n points in k-dimensional space, and an L t metric, the dynamic closest pair problem is deened as follows: nd a closest pair of S after each update of S (the insertion or the deletion of a point). For xed dimension k and xed metric L t , we give a data structure of size O(n) that maintains a closest pair of S in O(log n) time per insertion and deletion. The running time of algo...
متن کاملClosest-Point Problems in Computational Geometry
Michiel Smid Fakult at f ur Informatik Otto-von-Guericke-Universitat Magdeburg Universitatsplatz 2 D-39106 Magdeburg, Germany E-mail: [email protected] September 1, 1997 Abstract This is the preliminary version of a chapter that will appear in the Handbook on Computational Geometry, edited by J.-R. Sack and J. Urrutia. A comprehensive overview is given of algorithms and data s...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Inf. Process. Lett.
دوره 82 شماره
صفحات -
تاریخ انتشار 2002